/**
 * Created by Administrator on 2016/5/4.
 */
(function () {
    angular.module('hearthstone_deck_management')
        .directive('deckButton', function () {
            return {
                restrict: 'E',
                templateUrl: 'templates/decks.html',
                require: '^deckCardArea',
                link: function (scope, element, attr, deckCardArea) {
                    scope.setDeck = deckCardArea.setDeck;
                    scope.getDeck = deckCardArea.getDeck;
                }
            };
    })
})();
